package com.ruoyi.system.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author nanyang
 */
public class TAppDto {

    @Data
    @ApiModel(description = "新增应用")
    public static class Insert {
        @ApiModelProperty("应用名称")
        private String appName;
        @ApiModelProperty("APPID")
        private String appId;
        @ApiModelProperty("key")
        private String key;
        @ApiModelProperty("secret")
        private String secret;
        @ApiModelProperty("应用描述")
        private String description;
        @ApiModelProperty("联系人")
        private String contract;
        @ApiModelProperty("公司名称")
        private String companyName;
        @ApiModelProperty("禁用启用状态（0正常 1暂停）")
        private String status;
        @ApiModelProperty("接口id数组")
        private List<Long> interfaceIdList;
    }

    @Data
    @ApiModel("修改应用")
    public static class Update {
        @ApiModelProperty("ID")
        private Long id;
        @ApiModelProperty("应用名称")
        private String appName;
        @ApiModelProperty("APPID")
        private String appId;
        @ApiModelProperty("key")
        private String key;
        @ApiModelProperty("secret")
        private String secret;
        @ApiModelProperty("应用描述")
        private String description;
        @ApiModelProperty("联系人")
        private String contract;
        @ApiModelProperty("公司名称")
        private String companyName;
        @ApiModelProperty("禁用启用状态（0正常 1暂停）")
        private String status;
    }

    @Data
    @ApiModel("删除应用")
    public static class Delete {
        @ApiModelProperty("删除ID")
        private List<Long> idList;
    }


    @Data
    @ApiModel("查询应用")
    public static class Query {
        @ApiModelProperty("APPID")
        private String appId;
        @ApiModelProperty("应用名称")
        private String appName;
        @ApiModelProperty("key")
        private String key;
        @ApiModelProperty("联系人")
        private String contract;
        @ApiModelProperty("公司名称")
        private String companyName;
    }


}
